import wepy from '@wepy/core'
import { getSwiper, getCates, getFloors } from '../utils/api.js'
wepy.mixin({
  data: {
    swiper: [],
    cates: [],
    floors: []
  },
  created () {
    // 请求轮播图数据
    getSwiper().then(res => {
      this.swiper = res
    })
    // 请求分类导航数据
    getCates().then(res => {
      this.cates = res
    })

    // 请求楼层数据
    getFloors().then(res => {
      this.floors = res
    })
  }
})